package com.tz.crm.entity.dto;



import javax.validation.Valid;

/**
 * Created by wangchunyang on 2017/3/7.
 * 添加客户表单的封装类
 */
public class CustomerFrom {

    @Valid
    Customer customer;
    @Valid
    Contact contact;

    public CustomerFrom() {

    }

    public Customer getCustomer() {
        return customer;
    }

    public void setCustomer(Customer customer) {
        this.customer = customer;
    }

    public Contact getContact() {
        return contact;
    }

    public void setContact(Contact contact) {
        this.contact = contact;
    }

    @Override
    public String toString() {
        return "CustomerFrom{" +
                "customer=" + customer +
                ", contact=" + contact +
                '}';
    }
}
